<?php

class ItemBuyTokenAction extends SzAbstractAction
{
    protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_STRING
    );

    /**
     * Buy token use diamond
     *
     * @param int $userId
     * @param int $produceId
     * @return SzResponse
     */
    public function execute($userId, $produceId)
    {
        return $this->buildResponse(
            ItemService::get()->buyTokenUseDiamond($userId, $produceId)
        );
    }
}